From e3625b6dfb37b98652e12825849069e9c7084f14 Mon Sep 17 00:00:00 2001 From: Mathias Hasselmann Date: Sun, 13 Jan 2008 23:41:46 +0000 Subject: [PATCH] Make _gtk_tool_item_toolbar_reconfigured public to allow GtkToolShell implementations to notify its children, when some aspect of their configuration changed (#509042). * gtk/gtk.symbols: Add gtk_tool_item_toolbar_reconfigured. * gtk/gtktoolbar.c, gtk/gtktoolitem.c, gtk/gtktoolitem.h: Rename _gtk_tool_item_toolbar_reconfigured. svn path=/trunk/; revision=19361 --- ChangeLog | 10 ++++++++++ gtk/gtk.symbols | 1 + gtk/gtktoolbar.c | 2 +- gtk/gtktoolitem.c | 20 ++++++++++---------- gtk/gtktoolitem.h | 3 +-- 5 files changed, 23 insertions(+), 13 deletions(-) diff --git a/ChangeLog b/ChangeLog index 83cb298e42..0ae3389aff 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2008-01-14 Mathias Hasselmann + + Make _gtk_tool_item_toolbar_reconfigured public to allow GtkToolShell + implementations to notify its children, when some aspect of their + configuration changed (#509042). + + * gtk/gtk.symbols: Add gtk_tool_item_toolbar_reconfigured. + * gtk/gtktoolbar.c, gtk/gtktoolitem.c, gtk/gtktoolitem.h: + Rename _gtk_tool_item_toolbar_reconfigured. + 2008-01-12 Mathias Hasselmann Include from gtk.h. diff --git a/gtk/gtk.symbols b/gtk/gtk.symbols index f5de635914..0065218345 100644 --- a/gtk/gtk.symbols +++ b/gtk/gtk.symbols @@ -4114,6 +4114,7 @@ gtk_tool_item_set_tooltip_text gtk_tool_item_set_use_drag_window gtk_tool_item_set_visible_horizontal gtk_tool_item_set_visible_vertical +gtk_tool_item_toolbar_reconfigured #endif #endif diff --git a/gtk/gtktoolbar.c b/gtk/gtktoolbar.c index 8b1caddb77..70fc3171dd 100644 --- a/gtk/gtktoolbar.c +++ b/gtk/gtktoolbar.c @@ -4594,7 +4594,7 @@ toolbar_content_toolbar_reconfigured (ToolbarContent *content, switch (content->type) { case TOOL_ITEM: - _gtk_tool_item_toolbar_reconfigured (content->u.tool_item.item); + gtk_tool_item_toolbar_reconfigured (content->u.tool_item.item); break; case COMPATIBILITY: diff --git a/gtk/gtktoolitem.c b/gtk/gtktoolitem.c index 067a78851b..debda87984 100644 --- a/gtk/gtktoolitem.c +++ b/gtk/gtktoolitem.c @@ -294,7 +294,7 @@ gtk_tool_item_parent_set (GtkWidget *toolitem, GtkWidget *prev_parent) { if (GTK_WIDGET (toolitem)->parent != NULL) - _gtk_tool_item_toolbar_reconfigured (GTK_TOOL_ITEM (toolitem)); + gtk_tool_item_toolbar_reconfigured (GTK_TOOL_ITEM (toolitem)); } static void @@ -1167,17 +1167,17 @@ gtk_tool_item_set_proxy_menu_item (GtkToolItem *tool_item, } /** - * _gtk_tool_item_toolbar_reconfigured: - * @tool_item: a #GtkToolItem: - * - * Emits the signal #GtkToolItem::toolbar_reconfigured on @tool_item. This - * internal function is called by #GtkToolbar when some aspect of its - * configuration changes. - * - * Since: 2.4 + * gtk_tool_item_toolbar_reconfigured: + * @tool_item: a #GtkToolItem + * + * Emits the signal #GtkToolItem::toolbar_reconfigured on @tool_item. + * #GtkToolbar and other #GtkToolShell implementations use this function + * to notify children, when some aspect of their configuration changes. + * + * Since: 2.16 **/ void -_gtk_tool_item_toolbar_reconfigured (GtkToolItem *tool_item) +gtk_tool_item_toolbar_reconfigured (GtkToolItem *tool_item) { g_return_if_fail (GTK_IS_TOOL_ITEM (tool_item)); diff --git a/gtk/gtktoolitem.h b/gtk/gtktoolitem.h index dac7c0f0f9..430c16d40d 100644 --- a/gtk/gtktoolitem.h +++ b/gtk/gtktoolitem.h @@ -122,8 +122,7 @@ void gtk_tool_item_set_proxy_menu_item (GtkToolItem *tool_item, GtkWidget *menu_item); void gtk_tool_item_rebuild_menu (GtkToolItem *tool_item); -/* internal function */ -void _gtk_tool_item_toolbar_reconfigured (GtkToolItem *tool_item); +void gtk_tool_item_toolbar_reconfigured (GtkToolItem *tool_item); G_END_DECLS -- 2.30.2